#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>


int main()
{

 int fd = open("./table.html",O_RDONLY);
 if(fd < 0)
 {
   printf("\nopen failed\n");
   return 0;
 }
 char c = '\0';
 int read_size = read(fd , &c, 1);
 fprintf(stderr, "read_size:%d\n",read_size);

  while(read_size)
  {
    read_size = read(fd, &c,1);
    fprintf(stderr,"read_size %d\n",read_size);
    fprintf(stderr,"##################\n");
    fprintf( stderr,"%c",c);
    printf("%c",c);
  }

  return 0;
}
